<template>
  <div>
    <van-tabs v-model:active="active" swipeable>
      <van-tab title="综合得分">
        <div class="a1">
          <p>
            真棒!成功记录了1天的肤质数据。每周测肤2天就可
            以比较好地记录肤质变化了，测的天数越多越准哦~
          </p>
        </div>

        <div class="a2">
          <div class="a2-1">
            <img src="../../../../assets/images/shu.png" alt="" />
            <p>综合得分</p>
          </div>
          <div class="a2-2"></div>
        </div>

        <div class="a3">
          <p></p>
          <ul>
            <li>5/15</li>
            <li>5/19</li>
            <li>5/23</li>
            <li>5/27</li>
            <li>5/31</li>
          </ul>
        </div>
      </van-tab>
      <van-tab title="出油状况">
        <div class="a1">
          <p>
            真棒!成功记录了1天的肤质数据。每周测肤2天就可
            以比较好地记录肤质变化了，测的天数越多越准哦~
          </p>
        </div>

        <div class="a2">
          <div class="a2-1">
            <img src="../../../../assets/images/shu.png" alt="" />
            <p>出油情况</p>
          </div>
          <div class="a2-2"></div>
        </div>

        <div class="b1">
          <van-checkbox-group
            v-model="checked"
            direction="horizontal"
            checked-color="#E7BA2B"
          >
            <van-checkbox name="a">综合</van-checkbox>
            <van-checkbox name="b">脸颊</van-checkbox>
            <van-checkbox name="c">T区</van-checkbox>
            <van-checkbox name="d">下巴</van-checkbox>
          </van-checkbox-group>
        </div>

        <div class="a3" style="background: #fff4de">
          <p></p>
          <ul>
            <li>5/15</li>
            <li>5/19</li>
            <li>5/23</li>
            <li>5/27</li>
            <li>5/31</li>
          </ul>
        </div></van-tab
      >
      <van-tab title="光滑度">
        <div class="a1">
          <p>
            真棒!成功记录了1天的肤质数据。每周测肤2天就可
            以比较好地记录肤质变化了，测的天数越多越准哦~
          </p>
        </div>

        <div class="a2">
          <div class="a2-1">
            <img src="../../../../assets/images/shu.png" alt="" />
            <p>光滑度</p>
          </div>
          <div class="a2-2"></div>
        </div>

        <div class="a3" style="background: #edfcdf">
          <p></p>
          <ul>
            <li>5/15</li>
            <li>5/19</li>
            <li>5/23</li>
            <li>5/27</li>
            <li>5/31</li>
          </ul>
        </div></van-tab
      >
      <van-tab title="黑眼圈"
        ><div class="a1">
          <p>
            真棒!成功记录了1天的肤质数据。每周测肤2天就可
            以比较好地记录肤质变化了，测的天数越多越准哦~
          </p>
        </div>

        <div class="a2">
          <div class="a2-1">
            <img src="../../../../assets/images/shu.png" alt="" />
            <p>黑眼圈</p>
          </div>
          <div class="a2-2"></div>
        </div>

        <div class="b1">
          <van-checkbox-group
            v-model="checked"
            direction="horizontal"
            checked-color="#8B81D8"
          >
            <van-checkbox name="a">综合</van-checkbox>
            <van-checkbox name="b">脸颊</van-checkbox>
            <van-checkbox name="c">T区</van-checkbox>
            <van-checkbox name="d">下巴</van-checkbox>
          </van-checkbox-group>
        </div>

        <div class="a3" style="background: #f1f4fd">
          <p></p>
          <ul>
            <li>5/15</li>
            <li>5/19</li>
            <li>5/23</li>
            <li>5/27</li>
            <li>5/31</li>
          </ul>
        </div></van-tab
      >
      <van-tab title="痘痘"
        ><div class="a1">
          <p>
            真棒!成功记录了1天的肤质数据。每周测肤2天就可
            以比较好地记录肤质变化了，测的天数越多越准哦~
          </p>
        </div>

        <div class="a2">
          <div class="a2-1">
            <img src="../../../../assets/images/shu.png" alt="" />
            <p>痘痘</p>
          </div>
          <div class="a2-2"></div>
        </div>

        <div class="a3" style="background: #ffeded">
          <p></p>
          <ul>
            <li>5/15</li>
            <li>5/19</li>
            <li>5/23</li>
            <li>5/27</li>
            <li>5/31</li>
          </ul>
        </div></van-tab
      >
    </van-tabs>
  </div>
</template>

<script>
import { Tab, Tabs } from "vant";
import { ref } from "vue";
import "vant/es/tab/style";
import "vant/es/tabs/style";

import { Checkbox, CheckboxGroup } from "vant";
import "vant/es/checkbox/style";
export default {
  setup() {
    const active = ref(0);
    const checked = ref(["a"]);
    return { active, checked };
  },
  components: {
    VanTab: Tab,
    VanTabs: Tabs,
    VanCheckbox: Checkbox,
    VanCheckboxGroup: CheckboxGroup,
  },

  computed: {},

  mounted() {},

  methods: {},
};
</script>

<style lang="less" scoped>
:deep(.van-tab__text--ellipsis) {
  height: 3px;
  font-size: 28px;
  font-family: PingFang;
  font-weight: bold;
  padding-bottom: 20px;
  overflow: visible;
  justify-content: center;
  display: inline-block;
  color: black;
}
:deep(.van-tabs__wrap) {
  height: 90px;
  border-bottom: 1px solid #f1f1f1;
  margin-bottom: 33px;
}
// :deep(.van-tabs__nav .van-tabs__nav--line) {
//   display: flex;
//   align-items: flex-start;
// }
.a1 {
  height: 138px;
  width: 708px;
  background: url(../../../../assets/images/fontbac.png);
  background-size: 100% 100%;
  margin-left: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 102px;

  p {
    width: 607px;
    height: 61px;
    font-size: 26px;
    font-family: PingFang;
    font-weight: bold;
    color: #666666;
    line-height: 35px;
  }
}

.a2 {
  display: flex;
  justify-content: space-between;
  .a2-1 {
    display: flex;

    img {
      height: 40px;
      width: 10px;
      margin-left: 31px;
      margin-right: 25px;
    }

    p {
      width: 154px;
      height: 37px;
      font-size: 38px;
      font-family: PingFang;
      font-weight: bold;
      color: #000000;
    }
  }

  .a2-2 {
    width: 132px;
    height: 50px;
    background: #eeeeee;
    border-radius: 25px;
    margin-right: 22px;
  }
}

.a3 {
  width: 708px;
  height: 444px;
  background: #e4f9fa;
  border-radius: 15px;
  margin-left: 21px;
  margin-top: 52px;
  position: relative;

  p {
    width: 100%;
    height: 2px;
    background: #999999;
    position: absolute;
    bottom: 61px;
  }
  ul {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 17px;
    left: 64px;
    right: 92px;

    li {
      width: 61px;
      height: 21px;
      font-size: 24px;
      font-family: DIN;
      font-weight: bold;
      color: #999999;
    }
  }
}

.b1 {
  margin-left: 35px;
  margin-top: 40px;

  :deep(.van-checkbox) {
    overflow: visible;
    font-size: 26px;
    height: 30px;
    align-items: center;

    span {
      height: 30px;
      line-height: 30px;
    }
  }
  :deep(.van-checkbox__icon) {
    height: 30px;
  }
}
</style>
